'use strict';

Object.defineProperty(exports, "__esModule", {
    value: true
});
var prefixUnit = exports.prefixUnit = function prefixUnit(val, unit) {
    var defVal = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';

    if (val || val === 0) {
        return unit + val;
    }
    return defVal;
};
var suffixUnit = exports.suffixUnit = function suffixUnit(val, unit) {
    var defVal = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : '';

    if (val || val === 0) {
        return val + unit;
    }
    return defVal;
};
var unitValue = exports.unitValue = suffixUnit;

exports.default = unitValue;